import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryCarryScoreList = async (json) => {
  console.log('json', json);
  let { data } = await axios.post(API_URL + "rCarryScoreApi/queryCarryScoreList", json);
  return data;
};



export const updateCarryScore = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryScoreApi/updateCarryScore", json);
  return data;
};


export const addCarryScore = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryScoreApi/addCarryScore", json);
  return data;
};



export const delCarryScore = async (json) => {
  let { data } = await axios.post(API_URL + "rCarryScoreApi/delCarryScore", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rCarryScoreApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}